package com.lqm.dao;

import com.lqm.entity.home.Comments;
import com.lqm.entity.home.Project;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.repository.PagingAndSortingRepository;

import java.util.List;

public interface CommentsDao  extends JpaRepository<Comments,Integer>,PagingAndSortingRepository<Comments,Integer> {
    List<Comments> findAllByProject(Project project,Pageable pageable);
}
